package com.fudan.backend.service;

import com.fudan.backend.exception.RetCode;
import com.fudan.backend.pojo.StoreDeleteRequest;
import com.github.pagehelper.PageInfo;

public interface StoreDeleteRequestService {
    /**
     * 新增一条关店申请
     * @param storeId
     * @return 返回对应状态码
     */
    RetCode addStoreDeleteRequest(String storeId);

    /**
     * 处理闭店信息申请
     * @param storeDeleteRequest
     * @return 返回对应状态码
     */
    RetCode processStoreDeleteRequest(StoreDeleteRequest storeDeleteRequest);

    /**
     * @param current  当前页码
     * @param pageSize 页面大小
     * @return 所有删除商店信息申请的页面信息
     */
    PageInfo<StoreDeleteRequest> getAllStoreDeleteRequest(int current, int pageSize);

    /**
     * 通过storeDeleteRequestId获取StoreDeleteRequest信息
     * @param storeDeleteRequestId
     * @return 返回对应的StoreDeleteRequest, 如果找不到则返回错误信息
     */
    StoreDeleteRequest getStoreDeleteRequestByStoreDeleteRequestId(String storeDeleteRequestId);

    /**
     * @param current  当前页码
     * @param pageSize 页面大小
     * @param userId 用户id
     * @return 根据userId查找的所有删除商店信息申请的页面信息
     */
    PageInfo<StoreDeleteRequest> getAllStoreDeleteRequestByUserId(int current, int pageSize, String userId);
}
